package com.john.http.core.parser.config;


import com.john.http.core.convert.IValueConverter;

/**
 * 〈一句话功能简述〉<br/>
 * 〈解析HTML配置信息项〉
 *
 * @author jiangguangtao on 2016/4/28.
 */
public class HtmlParseConfigItem {
    /**
     * 值所在节点列序号
     */
    private int index;
    /**
     * 值设置到ProxyItem哪个属性中
     */
    private String field;
    /***
     * 获取到的字符串值转换器，可以直接转换为需要的类型
     */
    private IValueConverter valueConvert;
    /**
     * 值所在节点选择器，以当前行节点为起点
     */
    private String valueSelector;
    /**
     * 如果值不是直接存储为text属性的，设置相应的属性名称
     */
    private String valueAttr;

    public int getIndex() {
        return index;
    }

    public void setIndex(int index) {
        this.index = index;
    }

    public String getField() {
        return field;
    }

    public void setField(String field) {
        this.field = field;
    }

    public IValueConverter getValueConvert() {
        return valueConvert;
    }

    public void setValueConvert(IValueConverter valueConvert) {
        this.valueConvert = valueConvert;
    }

    public String getValueSelector() {
        return valueSelector;
    }

    public void setValueSelector(String valueSelector) {
        this.valueSelector = valueSelector;
    }

    public String getValueAttr() {
        return valueAttr;
    }

    public void setValueAttr(String valueAttr) {
        this.valueAttr = valueAttr;
    }
}
